/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.migo.utils;

/**
 *
 */
public class GenCodeUtil {

    public static String genCode() {
        StringBuilder sb = new StringBuilder();
        sb.append((int) (Math.random() * 9 + 1));
        for (int i = 0; i < 5; i++) {
            sb.append((int) (Math.random() * 10));
        }
        return sb.toString();
    }

    public static void main(String[] args) {
        String s = genCode();
        System.out.println(s);
    }
}
